\hypertarget{bdffont2c_8c}{}\section{fonts/bdffont2c.c File Reference}
\label{bdffont2c_8c}\index{fonts/bdffont2c.\+c@{fonts/bdffont2c.\+c}}


B\+DF to C code converter Copyright \copyright{} 2015 Mike Gore.  


{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include $<$stdlib.\+h$>$}\\*
{\ttfamily \#include $<$unistd.\+h$>$}\\*
{\ttfamily \#include $<$ctype.\+h$>$}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$limits.\+h$>$}\\*
{\ttfamily \#include $<$errno.\+h$>$}\\*
{\ttfamily \#include $<$sys/types.\+h$>$}\\*
{\ttfamily \#include $<$sys/stat.\+h$>$}\\*
{\ttfamily \#include $<$stdint.\+h$>$}\\*
{\ttfamily \#include \char`\"{}font.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}bdffontutil.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{bdffont2c_8c_aa4817482b1728bf62acf8030cab9842c}{usage} (char $\ast$prog)
\begin{DoxyCompactList}\small\item\em Display Usage. \end{DoxyCompactList}\item 
int \hyperlink{bdffont2c_8c_af3ed9c200de85b53c94cd18764b246a2}{main} (int argc, char $\ast$const argv\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em convert B\+DF fonts to C structures \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
B\+DF to C code converter Copyright \copyright{} 2015 Mike Gore. 

B\+DF C code test/preview tool Displays fonts generated by bdffont2c B\+DF to C code converter B\+DF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts.

B\+DF = Glyph Bitmap Distribution Format The code handles fixed, proportional and bounding box format fonts \begin{DoxySeeAlso}{See also}
\href{http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format}{\tt http\+://en.\+wikipedia.\+org/wiki/\+Glyph\+\_\+\+Bitmap\+\_\+\+Distribution\+\_\+\+Format}
\end{DoxySeeAlso}
\begin{DoxyParagraph}{Copyright \copyright{} 2015 Mike Gore, G\+PL License}

\end{DoxyParagraph}
\begin{DoxyParagraph}{You are free to use this code under the terms of G\+PL}
please retain a copy of this notice in any code you use it in.
\end{DoxyParagraph}
This is free software\+: you can redistribute it and/or modify it under the terms of the G\+NU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but W\+I\+T\+H\+O\+UT A\+NY W\+A\+R\+R\+A\+N\+TY; without even the implied warranty of M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY or F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE. See the G\+NU General Public License for more details.

You should have received a copy of the G\+NU General Public License along with this program. If not, see \href{http://www.gnu.org/licenses/}{\tt http\+://www.\+gnu.\+org/licenses/}.

\begin{DoxySeeAlso}{See also}
\href{http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format}{\tt http\+://en.\+wikipedia.\+org/wiki/\+Glyph\+\_\+\+Bitmap\+\_\+\+Distribution\+\_\+\+Format}
\end{DoxySeeAlso}
\begin{DoxyParagraph}{Copyright \copyright{} 2015 Mike Gore, G\+PL License}

\end{DoxyParagraph}
\begin{DoxyParagraph}{You are free to use this code under the terms of G\+PL}
please retain a copy of this notice in any code you use it in.
\end{DoxyParagraph}
This is free software\+: you can redistribute it and/or modify it under the terms of the G\+NU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but W\+I\+T\+H\+O\+UT A\+NY W\+A\+R\+R\+A\+N\+TY; without even the implied warranty of M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY or F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE. See the G\+NU General Public License for more details.

You should have received a copy of the G\+NU General Public License along with this program. If not, see \href{http://www.gnu.org/licenses/}{\tt http\+://www.\+gnu.\+org/licenses/}. 

\subsection{Function Documentation}
\index{bdffont2c.\+c@{bdffont2c.\+c}!main@{main}}
\index{main@{main}!bdffont2c.\+c@{bdffont2c.\+c}}
\subsubsection[{\texorpdfstring{main(int argc, char $\ast$const argv[])}{main(int argc, char *const argv[])}}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$const}]{argv\mbox{[}$\,$\mbox{]}}
\end{DoxyParamCaption}
)}\hypertarget{bdffont2c_8c_af3ed9c200de85b53c94cd18764b246a2}{}\label{bdffont2c_8c_af3ed9c200de85b53c94cd18764b246a2}


convert B\+DF fonts to C structures 

bdffonf2c \mbox{[}-\/o font\+\_\+output\+\_\+file \mbox{]} \mbox{[} -\/l lower\+\_\+bound \mbox{]} \mbox{[} -\/u upper\+\_\+bound \mbox{]} \mbox{[} -\/preview \mbox{]} \mbox{[} -\/\+Preview \mbox{]} bdf files..." pro -\/o\+: output file containg C S\+Tructures of converted font data -\/u\+: limit Glyph processing above limit\char`\"{});
-\/l\+: limit Glyph processing below limit\char`\"{}); -\/p 1 Preview font bitmap data -\/ only parts with 1 bits set\char`\"{});
-\/p 2 Preview Full font bitmap data -\/ everything inside font bounding box\char`\"{}); -\/p 3 Preview Proportional font bitmap data and fixed -\/ everything inside font bounding box"); -\/f convert any font to fixed size bitmap -\/ everything inside font bounding box -\/s Compact font to smallest bounding box Notes\+: modifies or creates font specs bdf files...\+: One of more B\+DF format font files 

Definition at line 91 of file bdffont2c.\+c.

\index{bdffont2c.\+c@{bdffont2c.\+c}!usage@{usage}}
\index{usage@{usage}!bdffont2c.\+c@{bdffont2c.\+c}}
\subsubsection[{\texorpdfstring{usage(char $\ast$prog)}{usage(char *prog)}}]{\setlength{\rightskip}{0pt plus 5cm}void usage (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{prog}
\end{DoxyParamCaption}
)}\hypertarget{bdffont2c_8c_aa4817482b1728bf62acf8030cab9842c}{}\label{bdffont2c_8c_aa4817482b1728bf62acf8030cab9842c}


Display Usage. 

B\+DF = Glyph Bitmap Distribution Format See\+: \href{http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format}{\tt http\+://en.\+wikipedia.\+org/wiki/\+Glyph\+\_\+\+Bitmap\+\_\+\+Distribution\+\_\+\+Format} 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$prog} & program name \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 57 of file bdffont2c.\+c.



Referenced by main().

